import java.text.NumberFormat;
import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        /*
        System.out.println("Hello,world");
        var s=System.in.read();
                System.out.println("姓名\t性别\t籍贯\t住址\n蒋林康\t男\t湖南\t零陵区");
        */
        //Scanner scanner = new Scanner(System.in);
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入本金");
        double p = scanner.nextDouble();
        System.out.println("请输入年利率");
        double yr = scanner.nextDouble();
        double mr=yr/12/100;
        System.out.println("请输入还款月数");
        int m = scanner.nextInt();
        double pow = Math.pow(1 + mr, m);
        double payment = p * mr * pow / (pow - 1);
        System.out.println("每月还款金额");
        System.out.println(NumberFormat.getCurrencyInstance().format(payment));

//        String format = NumberFormat.getCurrencyInstance().format(100.0);
//        System.out.println(format);
    }
}
